import { baseUrlConfig } from '@/config/config';
import request from '@/utils/request'

const bastPath = baseUrlConfig.processBaseUrl

// 机构数
export const repCompanyFindTree = (data: any) => {
  return request({
    url: bastPath + '/rep/company/findTree',
    method: 'post',
    data
  })
}

// 新增单位
export const repCompanyAppend = (data: any) => {
  return request({
    url: bastPath + '/rep/company/append',
    method: 'post',
    data
  })
}

// 编辑单位
export const repCompanyUpdate = (data: any) => {
  return request({
    url: bastPath + '/rep/company/update',
    method: 'post',
    data
  })
}

// 删除单位
export const repCompanyDelete = (data: any) => {
  return request({
    url: bastPath + '/rep/company/delete',
    method: 'post',
    data
  })
}


// 分页查询人员
export const repMemberFindpage = (data: any) => {
  return request({
    url: bastPath + '/rep/member/find/page',
    method: 'post',
    data
  })
}

// 移除人员
export const repCompanyRemove = (data: any) => {
  return request({
    url: bastPath + '/rep/company/remove',
    method: 'post',
    data
  })
}

// 查询穿梭框人员
export const repCompanyShuttle = (data: any) => {
  return request({
    url: bastPath + '/rep/company/shuttle',
    method: 'post',
    data
  })
}

// 批量加载人员
export const repCompanyDistribute = (data: any) => {
  return request({
    url: bastPath + '/rep/company/distribute',
    method: 'post',
    data
  })
}



export const repMemberUpdate = (data: any) => {
  return request({
    url: bastPath + '/rep/member/update',
    method: 'post',
    data
  })
}

// 加载人员
export const repMemberFindPage = (data: any) => {
  return request({
    url: bastPath + '/rep/member/find/page',
    method: 'post',
    data
  })
}

// 移除人员